package org.baicaixiaozhan.springbootwebdemo2.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * DESC:
 *
 * @author : baicaixiaozhan
 * @since : 2021-02-06
 */
@Configuration
public class PasswordEncoderConfig {

    @Bean
    public PasswordEncoder passwordEncoder() {
        // 测试, 不加密
        return NoOpPasswordEncoder.getInstance();
    }

}
